package store.dao;

import java.util.List;

import store.domain.Product;

public interface ProductDao {

	public List<Product> findHots() throws Exception;

	public List<Product> findNews() throws Exception;

	public Product findProductByPid(String pid)throws Exception;

	public int findTotalRecords(String cid) throws Exception;

	public List findProductsByCidWitPage(String cid, int startIndex, int pageSize) throws Exception;

	public int findTotalRecords()throws Exception;

	public List<Product> findAllProductsWithPage(int startIndex, int pageSize)throws Exception;

	public void saveProduct(Product product)throws Exception;

}
